﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Commander.Models.Dashboard.DefectDetail>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Smell Details</h2>
    <table>
        <tr>
            <th>
                Smell Name
            </th>
            <td>
                <%=Model.Name %>
            </td>
        </tr>
        <tr>
            <th>
                Smell Detail
            </th>
            <td>
                <%=Model.Problem %>
            </td>
        </tr>
        <tr>
            <th>
                Recommendation
            </th>
            <td>
                <%=Model.Solution %>
            </td>
        </tr>
        <tr>
            <th>
                Smell Location
            </th>
            <td>
                <%=Model.Location.ToString() %>
            </td>
        </tr>
        <tr>
            <th>
                Source
            </th>
            <td>
                <%=Model.Source.ToString() %>
            </td>
        </tr>
        <tr>
            <th>
                Refactor Possible                
            </th>
            <td>
               <%= Model.refactorPossible %>
            </td>
        </tr>
        <% if (Model.refactorPossible.ToString().Equals("Possible"))
           {%>
        <tr>
            <th>                
            </th>
            <td>
               <%= Html.ActionLink("Refactor", "Refactor", new { Name = Model.Name })%>
            </td>
        </tr>
        <%} %>
        
    </table>
</asp:Content>
